package wz

import (
	"fmt"
	"testing"
)

func TestHttpClient_QueryOrder(t *testing.T) {
	InitHttpClient("yZW6aRKr5m", "abcdefghijklmnop", "", "http://65.20.80.147:8899/")
	rsp, err := Hc.QueryOrder(&QueryOrderReq{
		Last: 0,
		Per:  10,
	})
	if err != nil {
		t.Error(err)
	}
	if rsp.Data != nil && len(rsp.Data.Data) > 0 {
		for idx := 0; idx < len(rsp.Data.Data); idx++ {
			t.Log(fmt.Sprintf("%+v", rsp.Data.Data[idx]))
		}
	}
}
